package cn.ilikes.tools.nosql.jpa.clients.indexs.index;

import org.apache.lucene.store.Directory;

import cn.ilikes.tools.nosql.jpa.JPASQLNoSupportException;
import cn.ilikes.tools.nosql.jpa.configs.indexs.IndexConfigs;

public abstract class ABLuceneIndexSource extends ABIndexSource {

	public ABLuceneIndexSource(IndexConfigs indexConfigs) {
		super(indexConfigs);
	}

	protected abstract Directory getLuceneDirectory();

	public Directory createDirectory() {
		return getLuceneDirectory();
	}

	@Override
	public boolean isOpen() {
		throw new JPASQLNoSupportException();
	}
	
	
	

}
